package com.oplink.webems.modules.alarm.dao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Component;

import com.oplink.webems.common.persistence.BaseDao;
import com.oplink.webems.common.persistence.BaseDaoImpl;
import com.oplink.webems.modules.alarm.entity.AlarmOpsmMode;

public interface AlarmOpsmModeDao  extends AlarmOpsmModeDaoCustom, CrudRepository<AlarmOpsmMode, Long> {
	
	@Query("from AlarmOpsmMode where omode = ?1")
	public List<AlarmOpsmMode> findOneMode(String val);
	
}

interface AlarmOpsmModeDaoCustom extends BaseDao<AlarmOpsmMode> {

}

@Component
class AlarmOpsmModeDaoImpl extends BaseDaoImpl<AlarmOpsmMode> implements AlarmOpsmModeDaoCustom {

}